<template>
  <div>
    <p>打开开关，关闭当前窗口，会进行提示</p>
    <a-switch v-model="isInterdict" />
  </div>
</template>

<script lang="ts" setup>
const { isInterdict } = useWindowUnload()
</script>
